import io.swagger.models.auth.In;

import java.util.Scanner;

public class MyGame {
    public static void main(String[] args) {
        int res = 0;
        int k = 1;
        for (int i = 0; i < 7; i++) {
            for (int j = 0; j < 128; j++) {
                int index = k << i;
                if ((j & (index)) != 0)
                    System.out.print(j+" ");
            };
            System.out.println();
            char c;
            Scanner sc=new Scanner(System.in);

            String s = sc.next();
            System.out.println(s);

            if (s.equals("y")) {
//                System.out.println(k << i);
//                System.out.println("res="+res);
                res = (k << i) + res;
                System.out.println(" ans res="+res);
            }
        } ;
        System.out.println("res = " + res);
    }
}
